package com.atguigu.guli.service.base.exception;

import com.atguigu.guli.service.base.result.ResultCodeEnum;
import lombok.Getter;

@Getter
public class GuliException extends RuntimeException {
    private ResultCodeEnum codeEnum;


    public GuliException(ResultCodeEnum codeEnum,Exception e){
        super(e);
        this.codeEnum=codeEnum;
    }

    public GuliException(ResultCodeEnum codeEnum) {
        super(codeEnum.getMessage());
        this.codeEnum=codeEnum;
    }
}
